package com.vito.oa.act.extend.dao;

import java.util.List;
import java.util.Map;

import com.vito.act.model.ActExTableColsModel;
import com.vito.oa.act.extend.model.OaActExTableColsModel;

public interface OaActExTableColsMapper{
	/**
	 * 保存表字段信息
	 * @param actExTableModel
	 * @return
	 */
	public int saveActExTableCols(OaActExTableColsModel actExTableModel);

	//删除
	public int deleteActExTableCols(ActExTableColsModel actExTableModel);

	/**
	 * 更新
	 * @param actExTableModel
	 * @return
	 */
	public int updateActExTableCols(OaActExTableColsModel actExTableModel);
	/**
	 * 
	 * @param param  tableKey refKey
	 * @return 返回全部属性
	 */
	public List<OaActExTableColsModel> queryOaActExTableColsByTabKeyAndRefKey(Map<String,Object> param);
	
	public List<OaActExTableColsModel> queryActExTableCols(OaActExTableColsModel arg0);

	/**
	 * 根据tableKey查询字段个数
	 * @param actExTableModel
	 * @return
	 */
	public Integer queryActExTableColsCount(ActExTableColsModel actExTableModel);

	/**
	 * @param param tableKey refKey
	 * @return返回key和name属性
	 */
	public List<ActExTableColsModel> queryActExTableColsSomeByTabKeyAndRefKey(Map<String,Object> param);
	/**
	 * 查询表的主键和外键
	 * @param tableKey
	 * @return
	 */
	public List<ActExTableColsModel> queryTablePKAndFk(ActExTableColsModel model);

}



